﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LeftEdge : MonoBehaviour {

	void OnTriggerEnter2D(Collider2D collider){
		if (collider.gameObject.name == "BodyCol") {
			CanvaController conl = GameObject.Find ("Canvas").GetComponent<CanvaController>();
			conl.ShowGameOver ();
		}
	}
}
